import Layout from '@/components/core/layout'

const router = {
  path: '/op',
  name: 'op',
  meta: {
    title: 'op',
    icon: 'mdi-atom',
  },
  component: Layout,
  redirect: '/op/group',
  children: [
    {
      path: 'group',
      name: 'groupList',
      component: () => import('@/views/op/group'),
      meta: {
        title: 'groupList'
      }
    },
    {
      path: 'sanpin',
      name: 'sanpin',
      component: () => import('@/views/op/sanpin'),
      meta: {
        title: 'sanpin'
      }
    },
    {
      path: 'detail',
      name: 'planDetail',
      hidden: true,
      component: () => import('@/views/op/detail/index'),
      meta: {
        title: 'planDetail',
        hidden: true,
      }
    },
    {
      path: 'arrange',
      name: 'arrange',
      redirect: '/arrange/guide',
      component: () => import('@/components/emtry'),
      children: [
        {
          path: 'guide',
          name: 'arrangeGuide',
          component: () => import('@/views/op/arrange/guide'),
          meta: {
            title: 'arrangeGuide'
          }
        },
        {
          path: 'hotel',
          name: 'arrangeHotel',
          component: () => import('@/views/op/arrange/hotel'),
          meta: {
            title: 'arrangeHotel'
          }
        },
        {
          path: 'scenic',
          name: 'arrangeScenic',
          component: () => import('@/views/op/arrange/scenic'),
          meta: {
            title: 'arrangeScenic'
          }
        },
        {
          path: 'restaurant',
          name: 'arrangeRestaurant',
          component: () => import('@/views/op/arrange/restaurant'),
          meta: {
            title: 'arrangeRestaurant'
          }
        },
        {
          path: 'car',
          name: 'arrangeCar',
          component: () => import('@/views/op/arrange/car'),
          meta: {
            title: 'arrangeCar'
          }
        },
        {
          path: 'speedboat',
          name: 'arrangeSpeedboat',
          component: () => import('@/views/op/arrange/speedboat'),
          meta: {
            title: 'arrangeSpeedboat'
          }
        },
      ]
    },
  ]
}

export default router
